export const constantRoutes = [
    {
      path: '/redirect',
      component: Layout,
      hidden: true,
      children: [
        {
          path: '/redirect/:path(.*)',
          component: () => import('@/views/redirect/index')
        }
      ]
    },
    {
      path: '/login',
      component: () => import('@/views/login/index'),
      hidden: true
    },
    {
      path: '/auth-redirect',
      component: () => import('@/views/login/auth-redirect'),
      hidden: true
    },
    {
      path: '/404',
      component: () => import('@/views/error-page/404'),
      hidden: true
    },
    {
      path: '/401',
      component: () => import('@/views/error-page/401'),
      hidden: true
    },
    {
      path: '/',
      component: Layout,
      redirect: '/management',
      children: [
        {
          path: 'management',
          component: () => import('@/views/management/index'),
          name: 'Management',
          meta: { title: 'management', icon: 'dashboard', }
        }
      ]
    },
    {
      path: '/commodity',
      component: Layout,
      children: [
        {
          path: '/index',
          component: () => import('@/views/commodity/index'),
          name: 'Commodity',
          meta: { title: 'commodity', icon: 'documentation', }
        }
      ]
    },
    {
      path: '/check',
      component: Layout,
      children: [
        {
          path: '/check',
          component: () => import('@/views/check/index'),
          name: 'Check',
          meta: { title: 'check', icon: 'guide', }
        },
        {
          path: '/grounding',
          component: () => import('@/views/grounding/index'),
          name: 'Grounding',
          meta: { title: 'grounding', icon: 'guide',  }
        },
  
      ],
      
    },
    {
      path: '/form',
      component: Layout,
      redirect: '/form/index',
      children: [
        {
          path: '/index',
          component: () => import('@/views/form/index'),
          name: 'Form',
          meta: { title: 'form', icon: 'edit',  }
        }
      ]
    },
    {
      path: '/analysis',
      component: Layout,
      redirect: '/analysis/index',
      children: [
        {
          path: '/index',
          component: () => import('@/views/analysis/index'),
          name: 'Analysis',
          meta: { title: 'analysis', icon: 'list',  }
        }
      ]
    },
    {
      path: '/setting',
      component: Layout,
      redirect: '/setting/index',
      children: [
        {
          path: '/index',
          component: () => import('@/views/setting/index'),
          name: 'PresonalCenter',
          meta: { title: 'PresonalCenter', noCache: true }
        },
        {
          path: '/option',
          component: () => import('@/views/setting/option'),
          name: 'OptionlCenter',
          meta: { title: 'OptionlCenter', noCache: true }
        }
      ]
    },
    
    
  ]